package com.warehouse.module.business.enums;

import com.warehouse.framework.common.exception.ErrorCode;

/**
 * 业务系统错误码枚举类
 * <p>
 * 业务系统，使用 1-009-000-000 段
 */
public interface ErrorCodeConstants {

    // ========== 分类管理 1_009_000_000 ==========
    ErrorCode CLASSIFY_NOT_EXISTS = new ErrorCode(1_009_000_000, "分类管理不存在");

    // ========== 品名/型号管理 1_009_001_000 ==========
    ErrorCode PRODUCT_NAME_TYPE_NOT_EXISTS = new ErrorCode(1_009_001_000, "品名/型号管理不存在");

    // ========== 货物资料 1_009_002_000 ==========
    ErrorCode CARGO_INFO_NOT_EXISTS = new ErrorCode(1_009_002_000, "订单不存在");
    ErrorCode CARGO_INFO_ORDER_ERROR = new ErrorCode(1_009_002_001, "主订单号错误");
    ErrorCode CARGO_INFO_ORDER_NO_ERROR = new ErrorCode(1_009_002_002, "主订单号已存在");
    ErrorCode CARGO_INFO_STATUS_ERR = new ErrorCode(1_009_002_003, "订单状态错误");
    ErrorCode CARGO_INFO_ADD_PAN_ERR = new ErrorCode(1_009_002_004, "计划添加失败");
    ErrorCode CARGO_INFO_PLAN_BACK_ERR = new ErrorCode(1_009_002_005, "当前计划不能回退");
    ErrorCode CARGO_INFO_NO_PLAN = new ErrorCode(1_009_002_006, "订单未下发计划");
    ErrorCode CARGO_INFO_UPDATE_ERROR = new ErrorCode(1_009_002_009, "无权修改订单");


    ErrorCode CARGO_FILE_NOT_EXISTS = new ErrorCode(1_009_002_007, "货物资料附件不存在");

    ErrorCode COMPANY_NOT_EXISTS = new ErrorCode(1_009_002_008, "客户公司不存在");

    ErrorCode CARGO_PLAN_NOT_EXISTS = new ErrorCode(1_009_002_007, "订单下发计划不存在");
}